﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListExpertInfo.aspx.cs" Inherits="lcs.Web.tenderExpert.ListExpertInfo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .style1 {
            width: 100%;
            text-align: center;
            margin:0,auto;
        }

        .style2 {
            height: 16px;
        }
    </style>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="../../css/myStyle.css" rel="stylesheet" />

    <link href="../style.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
            <table cellpadding="0" cellspacing="0" class="style1">
                <tr>
                    <td class="style2"></td>
                </tr>
                <tr>
                    <td style="height: 15px; text-align: center;">
                        <b>专家信息列表</b></td>
                </tr>
                <tr>
                    <td style="height: 15px;">&nbsp;</td>
                </tr>
                <tr>
                    <td style="height: 15px;">&nbsp;姓名：<asp:TextBox ID="txt_name" runat="server"></asp:TextBox>
                        &nbsp;<asp:Button ID="btn_sel" runat="server" CssClass="btn" OnClick="btn_sel_Click"
                            Text="查询" />
                    </td>
                </tr>
                <tr>
                    <td style="height: 15px;">&nbsp;</td>
                </tr>
                <tr>
                    <td style="height: 15px;">&nbsp;</td>
                </tr>
                <tr>
                    <td style="text-align: center; margin:0,auto; ">
                       
                        <asp:GridView ID="gridView" align="center"  runat="server" AutoGenerateColumns="False"
                            BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv"
                            GridLines="None" Width="100%" AllowPaging="True"
                            OnPageIndexChanging="gridView_PageIndexChanging" PageSize="30"
                            DataKeyNames="expertInfoId" >
                            <Columns>
                                <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="DeleteThis"  runat="server" />
                                    </ItemTemplate>

                                    <ControlStyle Width="30px"></ControlStyle>
                                </asp:TemplateField>

                                <asp:BoundField DataField="expertName" HeaderText="姓名" SortExpression="expertName" ItemStyle-HorizontalAlign="Center">
                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="unit" HeaderText="单位" SortExpression="unit" ItemStyle-HorizontalAlign="Center">
                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="contactway" HeaderText="联系方式" SortExpression="contactway" ItemStyle-HorizontalAlign="Center">
                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="安全工具" HeaderText="是否市公司" />
                                <asp:BoundField DataField="expertStudyMajor" HeaderText="所学专业" />
                                <asp:BoundField DataField="expertMajor" HeaderText="专业" SortExpression="expertMajor" ItemStyle-HorizontalAlign="Center" Visible="False">

                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                </asp:BoundField>

                                <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="expertInfoId" DataNavigateUrlFormatString="Show.aspx?id={0}"
                                    Text="详细" Visible="False">
                                    <ControlStyle Width="50px"></ControlStyle>
                                </asp:HyperLinkField>
                                <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="expertInfoId" DataNavigateUrlFormatString="AddOrUpExpertInfo.aspx?id={0}"
                                    Text="编辑">
                                    <ControlStyle Width="50px"></ControlStyle>
                                </asp:HyperLinkField>
                                <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                            Text="删除"></asp:LinkButton>
                                    </ItemTemplate>

                                    <ControlStyle Width="50px"></ControlStyle>
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle CssClass="mypager" />
                            
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td style="height: 15px;">
                        <asp:Button ID="btnDelete" runat="server" Text="删除选定项" OnClick="btnDelete_Click" />
                    </td>
                </tr>
                <tr>
                    <td style="height: 15px;">&nbsp;</td>
                </tr>
            </table>
    </form>
</body>
</html>
